<?php

class groupView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddGroup() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('group/status_json.tpl');
		}
		else {
			$this->setTemplate('group/status.tpl');

		}
		$this->show();
	}

	public function showGetGroups() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('group/get_json.tpl');
		}
		else {
			$this->setTemplate('group/get.tpl');

		}
		$this->show();
	}

	public function showUpdateGroup() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('group/status_json.tpl');
		}
		else {
			$this->setTemplate('group/status.tpl');

		}
		$this->show();
	}

	public function showDeleteGroup() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('group/status_json.tpl');
		}
		else {
			$this->setTemplate('group/status.tpl');

		}
		$this->show();
	}

}
?>